<form id="pagerForm" method="post" action="">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="g" value="{$group_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					<ul class="searchContent">
					<li style="width:220px;">关键字：<input type="text" name="keywords"  class="input-text" value="{$keywords}" class="textInput"/></li>
					<li style="width:80px;">
						<select name="sfield" class="combox">
					 <option value="all" {if $sfied=='all'}selected="selected"{/if}>全部</option>
						<option value="id" {if $sfield == 'id'}selected="selected"{/if}>编号</option>
						<option value="userid" <eq name="sfield" value="userid">selected</eq>>用户ID</option>
						<option value="liushuisn" <eq name="sfield" value="liushuisn">selected</eq>>银转流水号</option>
						</select>
						<input type="hidden" name="sfield_name" value="id,userid,liushuisn" />
					</li>
					<li style="width:80px;">
						<select id="status" name="status" class="combox">
						<option value="">状态</option>
						<option value="0" <if condition="isset($map['status']) && $map['status'] ==0">selected="selected"</if>>{$status['0']}</option>
						<option value="1" <if condition="isset($map['status']) && $map['status'] ==1">selected="selected"</if>>{$status['1']}</option>
						<option value="2" <if condition="isset($map['status']) && $map['status'] ==2">selected="selected"</if>>{$status['2']}</option>
						</select>
					</li>
					<li style="width:110px;">
						<select id="typeid" name="typeid" class="combox">
						<option value="">处理进度</option>
						<option value="0" <if condition="isset($typeid) && $status ==0">selected="selected"</if>>{$type['0']['title']}</option>
						<option value="1" <if condition="isset($typeid) && $status ==1">selected="selected"</if>>{$type['1']['title']}</option>
						<option value="2" <if condition="isset($typeid) && $status ==2">selected="selected"</if>>{$type['2']['title']}</option>
						<option value="3" <if condition="isset($typeid) && $status ==3">selected="selected"</if>>{$type['3']['title']}</option>
						<option value="4" <if condition="isset($typeid) && $status ==4">selected="selected"</if>>{$type['4']['title']}</option>
						<option value="5" <if condition="isset($typeid) && $status ==5">selected="selected"</if>>{$type['5']['title']}</option>
						</select>
					</li>
					</ul>
				</td>
				<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					<div class="buttonActive"><div class="buttonContent"><button type="reset">清空</button></div></div>
				</td>
			</tr>
		</table>
	</div>
	</form>
    </form>
    

</div>

<div class="pageContent">
    <div id="w_list_print">
        <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="94">
             <thead>
      		<tr>
				<th width="5%" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>编号</th>
				<th width="10%" orderField="userid" {if $orderField=='userid'}class="{$orderDirection}"{/if}>用户</th>
				<th width="10%" orderField="moneyprice" {if $orderField=='moneyprice'}class="{$orderDirection}"{/if}>金额</th>
				<th width="15%" orderField="liushuisn" {if $orderField=='liushuisn'}class="{$orderDirection}"{/if}>银转流水号</th>
				<th width="10%" orderField="status" {if $orderField=='status'}class="{$orderDirection}"{/if}>受理</th>
				<th width="5%" 	orderField="typeid" {if $orderField=='typeid'}class="{$orderDirection}"{/if}>处理进度</th>
				<th >处理回复</th>
				<th width="10%" align="center" orderField="createtime" {if $orderField=='createtime'}class="{$orderDirection}"{/if}>提交时间</th>
				<th width="10%" align="center">操作</th>
			</tr>
      	</thead>
            	<tbody>
<volist name="list" id="vo">
      	<tr target="sid_user">
			<td height="50">{$vo['id']}</td>
            <td><a title="查看" target="dialog" style="color:blue;" width="630" height="590" rel="User_detail_{$vo['userid']}" href="{:U('User/detail',array('id'=>$vo['userid']))}">({$vo['userid']})</a>
            &nbsp;&nbsp;<a href="{:U('Kitmoney/agenttransferxv',array('keywords'=>$vo['userid'],'sfield'=>'userid'))}" target="navTab"  title="查看该用户所有的充值留言">{$userdata[$vo['userid']]['username']}</a></td>
      		<td><font color="red">{$vo['moneyprice']/100}</font></td>
			<td>{$vo['liushuisn']}</td>
      		<td>{$status[$vo['status']]}</td>
      		<td><a href="javascript:void(0);" title="{$type[$vo['typeid']]['msg']}">{$type[$vo['typeid']]['title']}</a></td> 
            <td>
			  <if condition="empty($vo['reply_content'])">
              <else/>
              <php>$reply=unserialize($vo['reply_content']);</php>
              <volist name="reply" id="re">
              	<p>操作员{$re['aid']}号 {$re['time']|date='Y-m-d H:i'} {$re['msg']}</p>
              </volist>
              </if>
              {if $vo['content']!='0'}<p>{$vo['content']}</p>{/if}
              </td>
			<td>{$vo['createtime']|date='Y-m-d H:i:s',###}</td>
            <td>          	
			 	{if $vo['typeid']== 1}
            	<a class="add" href="{:U('Kitmoney/money',array('userid'=>$vo['userid'],'id'=>$vo['id']))}" target="dialog" width="600" height="580" rel='kitmoney_money'><span>调整帐户</span></a> 
				{/if}
				
				{if $vo['typeid']== 0 || $vo['typeid'] == 2}<a class="add" href="{:U('Kitmoney/pay',array('id'=>$vo['id']))}" target="dialog" width="600" height="300"><span>变更状态</span></a>
				{elseif $vo['typeid'] == 1}
				{else}已经关闭{/if}</td>
      	</tr>
		</volist>
      	</tbody>
        </table>
    </div>

    <div class="panelBar" >
        <div class="pages">
            <span>显示 </span>
            <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
                <option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
                <option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
                <option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
            </select>
            <span> 条，共 {$totalCount} 条</span>
        </div>
        
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
    </div>
</div>

